},
addSeparator: function () {
- let box = new St.Bin({ style_class: 'separator' })
+ let box = new St.Bin({ style_class: 'separator' });
this._separator = box;
this._list.add_actor(box);
},
this._label = new St.Label({ text: this.app.get_name() });
this.actor.add(this._label, { x_fill: false });
}
-}
+};
function AppSwitcher(apps) {
this._init(apps);
return;
let children = this._container.get_children();
let targetActor = children[this.selectionIndex];
- this.provider.activateResult(targetActor._delegate.app.get_id())
+ this.provider.activateResult(targetActor._delegate.app.get_id());
}
-}
+};
function BaseAppSearchProvider() {
this._init();
expandSearch: function(terms) {
log("TODO expand search");
}
-}
+};
function PrefsSearchProvider() {
this._init();
controlCenter.launch();
Main.overview.hide();
}
-}
+};
function AppIcon(app) {
this._init(app);
this._name.clutter_text.line_alignment = Pango.Alignment.CENTER;
box.add_actor(this._name);
}
-}
+};
function AppWellIcon(app) {
this._init(app);
getDragActorSource: function() {
return this._icon.icon;
}
-}
+};
Signals.addSignalMethods(AppWellIcon.prototype);
function AppIconMenu(source) {
addItem: function(actor) {
this._grid.add_actor(actor);
}
-}
+};
function AppWell() {
this._init();
function Calendar() {
this._init();
-};
+}
Calendar.prototype = {
_init: function() {
else
this.open();
}
-}
+};
Signals.addSignalMethods(Pane.prototype);
function ResultArea(displayType, flags) {
this.resultsContainer.append(this.display.actor, Big.BoxPackFlags.EXPAND);
this.display.load();
}
-}
+};
// Utility function shared between ResultPane and the DocDisplay in the main dash.
// Connects to the detail signal of the display, and on-demand creates a new
}));
return resultArea.display;
}
-}
+};
function SearchEntry() {
this._init();
else
this.provider.activateResult(this.metaInfo.id);
}
-}
+};
function OverflowSearchResults(provider) {
this._init(provider);
let targetActor = children[this.selectionIndex];
targetActor._delegate.activate();
}
-}
+};
function SearchResults(searchSystem) {
this._init(searchSystem);
resultDisplay.activateSelected();
Main.overview.hide();
}
-}
+};
function MoreLink() {
this._init();
this._expander.style_class = 'more-link-expander open';
}));
}
-}
+};
Signals.addSignalMethods(MoreLink.prototype);
reactive: true });
this.actor.set_child(new St.Bin({ style_class: "section-header-back-image" }));
}
-}
+};
function SectionHeader(title, suppressBrowse) {
this._init(title, suppressBrowse);
this.countText.text = countText;
}
}
-}
+};
Signals.addSignalMethods(SectionHeader.prototype);
this.actor.connect('clicked', onClick);
}
-}
+};
function Section(titleString, suppressBrowse) {
this._init(titleString, suppressBrowse);
vertical: true });
this.actor.add(this.content);
}
-}
+};
function Dash() {
this._init();
const GenericDisplayFlags = {
DISABLE_VSCROLLING: 1 << 0
-}
+};
/* This is a virtual class that represents a display containing a collection of items
* that can be filtered with a search string.
this._selectedIndex = index;
if (index < 0)
- return
+ return;
// Mark the new item as selected and create its details pane
let item = this._findDisplayedByIndex(index);
let vAdjust = tabData.scrollView.vscroll.adjustment;
vAdjust.value = vAdjust.upper - vAdjust.page_size;
}
-}
+};
Signals.addSignalMethods(Notebook.prototype);
function Result(command, o, index) {
padBin.add_actor(line);
this.actor.append(padBin, Big.BoxPackFlags.NONE);
}
-}
+};
function ActorHierarchy() {
this._init();
let link = children[idx];
this.emit('selection', actor);
}
-}
+};
Signals.addSignalMethods(ActorHierarchy.prototype);
function PropertyInspector() {
this.actor.add_actor(propDisplay);
}
}
-}
+};
function Inspector() {
this._init();
}));
Clutter.grab_pointer(eventHandler);
}
-}
+};
Signals.addSignalMethods(Inspector.prototype);
},
_formatTime: function(d){
- function pad(n) { return n < 10 ? '0' + n : n };
+ function pad(n) { return n < 10 ? '0' + n : n; }
return d.getUTCFullYear()+'-'
+ pad(d.getUTCMonth()+1)+'-'
+ pad(d.getUTCDate())+'T'
+ pad(d.getUTCHours())+':'
+ pad(d.getUTCMinutes())+':'
- + pad(d.getUTCSeconds())+'Z'
+ + pad(d.getUTCSeconds())+'Z';
},
_renderText: function() {
}
this.text.text = text;
}
-}
+};
function Extensions() {
this._init();
methods: [{ name: 'GetConnectionUnixProcessID',
inSignature: 's',
outSignature: 'i' }]
-}
+};
const Bus = function () {
this._init();
-}
+};
Bus.prototype = {
_init: function() {
DBus.session.proxifyObject(this, 'org.freedesktop.DBus', '/org/freedesktop/DBus');
}
-}
+};
DBus.proxifyPrototype(Bus.prototype, BusIface);
const HOT_CORNER_ACTIVATION_TIMEOUT = 0.5;
-const STANDARD_TRAY_ICON_ORDER = ['keyboard', 'volume', 'bluetooth', 'network', 'battery']
+const STANDARD_TRAY_ICON_ORDER = ['keyboard', 'volume', 'bluetooth', 'network', 'battery'];
const STANDARD_TRAY_ICON_IMPLEMENTATIONS = {
'bluetooth-applet': 'bluetooth',
'gnome-volume-control-applet': 'volume',
child.allocate(childBox, flags);
}
}
-}
+};
/**
* AppPanelMenu:
this.emit('changed');
}
-}
+};
Signals.addSignalMethods(AppPanelMenu.prototype);
isRemovable: function() {
return false;
}
-}
+};
function PlaceDeviceInfo(mount) {
this._init(mount);
_removeFinish: function(o, res, data) {
this._mount.unmount_finish(res);
}
-}
+};
function PlacesManager() {
let places = previousResults.map(function (id) { return Main.placesManager.lookupPlaceById(id); });
return this._searchPlaces(places, terms);
}
-}
+};
function RunDialog() {
this._init();
-};
+}
RunDialog.prototype = {
_init : function() {
expandSearch: function(terms) {
throw new Error("not implemented");
}
-}
+};
Signals.addSignalMethods(SearchProvider.prototype);
function SearchSystem() {
return results;
}
-}
+};
Signals.addSignalMethods(SearchSystem.prototype);
launch : function() {
this._info.launch();
}
-}
+};
function AppsWidget() {
this._init.apply(this, arguments);
window.connect('notify::title', Lang.bind(this, function(win) {
notification.update(this._getTitle(app, win), this._getBanner(app, win), false);
}));
- window.connect('notify::demands-attention', Lang.bind(this, function() { source.destroy() }));
- window.connect('focus', Lang.bind(this, function() { source.destroy() }));
- window.connect('unmanaged', Lang.bind(this, function() { source.destroy() }));
+ window.connect('notify::demands-attention', Lang.bind(this, function() { source.destroy(); }));
+ window.connect('focus', Lang.bind(this, function() { source.destroy(); }));
+ window.connect('unmanaged', Lang.bind(this, function() { source.destroy(); }));
}
-}
+};
function Source(sourceId, app, window) {
this._init(sourceId, app, window);
MessageTray.Source.prototype.clicked.call(this);
}
-}
+};
// Tests if @win should be shown in the Overview
_isOverviewWindow : function (win) {
- let tracker = Shell.WindowTracker.get_default()
+ let tracker = Shell.WindowTracker.get_default();
return tracker.is_window_interesting(win.get_meta_window());
},
Tweener.addTween(this._container, { opacity: 0.0,
time: ANIMATION_TIME,
transition: "easeOutQuad",
- onComplete: function() { this.actor.hide() },
+ onComplete: function() { this.actor.hide(); },
onCompleteScope: this
});
}
_addWorkspaceActor: function() {
throw new Error("Not implemented");
}
-}
+};
function MosaicView(width, height, x, y, animate) {
this._init(width, height, x, y, animate);